package com.tanguy.user.bean.station;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dab on 2017/11/21 0021 15:18
 */

public class SiteBean implements Parcelable {
    /**
     * id : 1
     * addtime : 1510628897000
     * name : 成都火车北站
     * cityCode : 510100
     * cityName : 成都市
     * lineup : 5
     * siteaddr : 火车北站
     * lon : 12.23
     * lat : 13.22
     * state : 1
     */

    private int id;
    private long addtime;
    private String name;
    private String cityCode;
    private String cityName;
    private String lineup;
    private String siteaddr;
    private double lon;
    private double lat;
    private int state;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getAddtime() {
        return addtime;
    }

    public void setAddtime(long addtime) {
        this.addtime = addtime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getLineup() {
        return lineup;
    }

    public void setLineup(String lineup) {
        this.lineup = lineup;
    }

    public String getSiteaddr() {
        return siteaddr;
    }

    public void setSiteaddr(String siteaddr) {
        this.siteaddr = siteaddr;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeLong(this.addtime);
        dest.writeString(this.name);
        dest.writeString(this.cityCode);
        dest.writeString(this.cityName);
        dest.writeString(this.lineup);
        dest.writeString(this.siteaddr);
        dest.writeDouble(this.lon);
        dest.writeDouble(this.lat);
        dest.writeInt(this.state);
    }

    public SiteBean() {
    }

    protected SiteBean(Parcel in) {
        this.id = in.readInt();
        this.addtime = in.readLong();
        this.name = in.readString();
        this.cityCode = in.readString();
        this.cityName = in.readString();
        this.lineup = in.readString();
        this.siteaddr = in.readString();
        this.lon = in.readDouble();
        this.lat = in.readDouble();
        this.state = in.readInt();
    }

    public static final Parcelable.Creator<SiteBean> CREATOR = new Parcelable.Creator<SiteBean>() {
        @Override
        public SiteBean createFromParcel(Parcel source) {
            return new SiteBean(source);
        }

        @Override
        public SiteBean[] newArray(int size) {
            return new SiteBean[size];
        }
    };

    @Override
    public String toString() {
        return "SiteBean{" +
                "id=" + id +
                ", addtime=" + addtime +
                ", name='" + name + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", cityName='" + cityName + '\'' +
                ", lineup='" + lineup + '\'' +
                ", siteaddr='" + siteaddr + '\'' +
                ", lon=" + lon +
                ", lat=" + lat +
                ", state=" + state +
                '}';
    }
}
